//
//  NSCoderExt.swift
//  CommonUtil
//
//  Created by sunlubo on 2017/3/15.
//  Copyright © 2016年 milanosoft. All rights reserved.
//

import Foundation

extension NSCoder {

    open func decodeObject<T>(forKey key: String) -> T? {
        return decodeObject(forKey: key) as? T
    }
}
